package com.mathset.bean;

import java.sql.Date;

import javax.validation.constraints.Pattern;

public class Member {
	
	private String UID;
	
	@Pattern(regexp="^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$")
	private String email;
	
	@Pattern(regexp="^([a-z0-9A-Z_]{6,30})$")
	private String userName;
	
	@Pattern(regexp="^([a-z0-9A-Z_]{6,30})$")
	private String password;
	
	private String password2;
	
	private Date regDate;
	
	private byte status;
	
	private byte emailStatus;
	
	private int expired;

	private String existedUserName;
	
	private String existedMailId;
	
	private String invalidUserNameOrPassword;
	
	public String getUID() {
		return UID;
	}

	public void setUID(String uID) {
		UID = uID;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPassword2() {
		return password2;
	}

	public void setPassword2(String password2) {
		this.password2 = password2;
	}

	public Date getRegDate() {
		return regDate;
	}

	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}

	public byte getStatus() {
		return status;
	}

	public void setStatus(byte status) {
		this.status = status;
	}

	public int getExpired() {
		return expired;
	}

	public void setExpired(int expired) {
		this.expired = expired;
	}

	public byte getEmailStatus() {
		return emailStatus;
	}

	public void setEmailStatus(byte emailStatus) {
		this.emailStatus = emailStatus;
	}

	public String getExistedUserName() {
		return existedUserName;
	}

	public void setExistedUserName(String existedUserName) {
		this.existedUserName = existedUserName;
	}

	public String getExistedMailId() {
		return existedMailId;
	}

	public void setExistedMailId(String existedMailId) {
		this.existedMailId = existedMailId;
	}

	public String getInvalidUserNameOrPassword() {
		return invalidUserNameOrPassword;
	}

	public void setInvalidUserNameOrPassword(String invalidUserNameOrPassword) {
		this.invalidUserNameOrPassword = invalidUserNameOrPassword;
	}
	
}
